﻿using System;
using System.Threading.Tasks;

namespace TK.Mqtt.Client
{
    public interface IMqttClientWrapper : IDisposable
    {
        /// <summary>
        /// 数据接收事件
        /// </summary>
        event Action<CallbackData> ReceiveData;

        /// <summary>
        /// 启动
        /// </summary>
        Task StartAsync();

        /// <summary>
        /// 取消订阅
        /// </summary>
        Task UnSunscribeAsync(string topic);
    }
}
